#include <iostream>
using namespace std;
#include <iomanip>
int main()
{
	int size;
	float sum = 0;
	int *heapArray;
	cout << "please input the number of elements: " << endl;
	cin >> size;
	heapArray = new int[size];//get heap memory space.
	cout << "please input each element: "<< endl;
	for (int i=0; i<size; i++)
	{
		cin >> heapArray[i];
		sum = sum + heapArray[i];
	}
	cout << "The number of vaerage is: " << sum/size << endl;
	delete []heapArray;//release heap memory space.
	return 0;
}
